<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class User{


    private $id;
    private $name;
    private $email;
    private $username;        
    private $password;

    private $group_id;

    public function  __construct($name,$email,$username,$password, Group $group_id) {
        $this->name=$name;
        $this->email=$email;
        $this->username=$username;
        $this->password=$password;

        $this->group_id=$group_id;
        $this->id=1;
    }

    public function  __toString() {
        return $this->id.' - '.$this->username;
    }

    public function getGroup(){
        return $this->group_id;
    }


    
}
?>
